package cm.day06.Test1;

public class StudentTest {
    public static void main(String[] args) {
        Studnent studnent=new Studnent();
        try{
            studnent.setName("小黑");
            studnent.setSex("不男不女");
            studnent.setAge(12);

        }catch (AgeException e){
               e.printStackTrace();
        }
        System.out.println("年龄错误");

    }
}
